/**
 * 
 */
package me.myachievements.persistence;

import org.springframework.transaction.annotation.Transactional;

/**
 * @author besseym
 *
 */
public interface GenericPersistenceManager {
	
	/**
	 * Read the T from the database with the give Class<T> type and id.
	 * 
	 * @param <T>
	 * @param type
	 * @param id
	 * @return
	 */
	@Transactional
	<T> T read(Class<T> type, Long id);
}
